package br.com.dao;

import java.sql.Connection;
import java.sql.PreparedStatement;

import br.com.bean.EstadoBean;

public class EstadoDAO {
	public void inserir(Connection conn, EstadoBean value) throws Exception {


		String sql = "	INSERT INTO estado(id, nome) VALUES (?, ?)";
		
		PreparedStatement ps = conn.prepareStatement(sql);
		ps.setInt(1, value.getId());
		ps.setString(2, value.getNome());
		ps.execute();
		ps.close();
	

	}

}
